package nosqlconnect.toolbarActions;

import nosqlconnect.Activator;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;

public class TDeleteConnectionAction extends Action implements IWorkbenchAction {

	public TDeleteConnectionAction(){
		setText("Delete");
		setToolTipText("Delete connection");
		setImageDescriptor(Activator.getImageDescriptor("icons/cross-script.png"));
	}
	
	public void run() {  
		  
		Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();  
		String dialogBoxTitle = "Message";  
		String message = "So you want to delete?";  
		MessageDialog.openInformation(shell, dialogBoxTitle, message); 
	}
	
	@Override
	public void dispose() {
		
	}
	
}
